package com.cgg.stock.transaction.service;

import com.cgg.stock.common.exception.MatchFailedException;
import com.cgg.stock.common.exception.PriceNotNullException;
import com.cgg.stock.common.pojo.Order;
import com.cgg.stock.common.pojo.TradeOrder;

import java.util.List;

public interface ITransactionService {
    public List<TradeOrder> processLimitBuy(Order order) throws PriceNotNullException, Exception;

    public List<TradeOrder> processLimitSell(Order order) throws MatchFailedException, Exception;
}
